package com.bolt.support.codegenerator.db;

import com.bolt.convention.data.PageInfo;
import com.bolt.support.codegenerator.dto.TableInfo;
import com.bolt.support.codegenerator.model.Table;

import java.sql.SQLException;
import java.util.Map;

/**
 * 功能描述：连接数据库接口
 *
 * @author michao
 *         Created by Administrator on 2018/2/2.
 */
public interface TableFactory {

    PageInfo<TableInfo> getTables(String tableName,int page, int size) throws SQLException;


    /** @deprecated */
    @Deprecated
    Map <String, String> getAllTables() throws SQLException;

    /**
     * 查询表结构信息
     *
     * @param tableName
     * @return
     * @throws SQLException
     */
    Table getTable(String tableName) throws SQLException;


}
